package com.desidea.common
{
	import flash.utils.Dictionary;
	
	import mx.controls.Alert;
	
	public class ConfigHelper
	{
		private var _config:XML;

		public static function GetInstance(configXML:XML):ConfigHelper{
			var ch:ConfigHelper = new ConfigHelper();
			ch._config = configXML;
			
			return ch
		}
		
		public function GetValue(section:String, key:String):String{
			return this._config.section.(@id==section).setting.(@key==key).@value;
		}
		
		public function toString():String{
			return this._config.toString();
		}
	}
}
